ScxV6Object.Interface Method
Returns an object representing the database interface of the object.
Remarks
The Interface method returns an automation interface that provides access to all properties and methods available on the database object. This is an alternative to using the Property property to access database properties of an object.
For information about what properties and methods are available refer to the Database Schema.
The following example written in Visual Basic shows the Interface method being used set the number of retries on a Modbus channel to 5.
Dim Svr As ScxV6DbClient.ScxV6Server
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server
Svr.Connect("MAIN", "", "")
Dim Obj As ScxV6DbClient.ScxV6Object
Obj = Svr.FindObject("Primary Serial Modbus Channel")
Obj.Interface.Retries = 5
' Disconnect
Svr.Disconnect()
Database fields that contain a numeric IPv4 address are 32-bit signed integer fields. When using the automation interface to enter higher addresses in such fields, you have to pass the IP address as a negative decimal value.
When using the automation interface to populate a database field such as CeNETTCPIP::Eth1IPAddress with a higher IP address such as 176.16.1.200, you have to pass the IP address as the negative value -1,341,128,248 rather than 2,953,839,048. If, when using the automation interface to modify the field, the IP address is not passed as a negative value, an overflow error occurs.